package org.sky.model;

import javax.persistence.*;

/**
 * Created with IntelliJ IDEA.
 * User: Administrator
 * Date: 12-10-17
 * Time: 上午1:58
 * To change this template use File | Settings | File Templates.
 */

@Entity
public class Room {

    /**
     * k房编号
     */
    private int roomId;

    /**
     * 房间大小
     */
    private int size;

    /**
     * 房间类型
     */
    private String roomStyle;

    /**
     * 设备完好
     */
    private boolean good;


    @Id
    @Column(name = "roomId")
    public int getRoomId() {
        return roomId;
    }

    public void setRoomId(int roomId) {
        this.roomId = roomId;
    }

    @Column(length = 8, nullable = false)
    public int getSize() {
        return size;
    }

    public void setSize(int size) {
        this.size = size;
    }

    @Column(columnDefinition = "BIT default 1")
    public boolean isGood() {
        return good;
    }

    public void setGood(boolean good) {
        this.good = good;
    }

    @Column(nullable = false, length = 10)
    public String getRoomStyle() {
        return roomStyle;
    }

    public void setRoomStyle(String roomStyle) {
        this.roomStyle = roomStyle;
    }
}
